package model;

import java.beans.*;

public class Model {

	private Meetstation meetstation = null;
	private PropertyChangeSupport melder = null;

	public Model() {
		melder = new PropertyChangeSupport(this);
	}

	public Meetstation getMeetstation() {
		return meetstation;
	}

	public void setMeetstation(Meetstation meetstation) {
		this.meetstation = meetstation;
		melder.firePropertyChange("station", "", meetstation);
	}
	
	public void luisteraarToevoegen(String naam, PropertyChangeListener pL) {
		melder.addPropertyChangeListener(naam, pL);
	}
}
